package com.marry.multidatasource.mapper.bd;

import com.marry.multidatasource.model.RequestItem;
import com.marry.multidatasource.model.bd.Ownandcase;
import com.marry.multidatasource.model.bd.RightOrProof;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by ml on 2018-01-04.
 */
public interface OwnancaseMapper {
    List<Ownandcase> getOwnandcaseByName(@Param("name") String name);

    /**
     * 根据 姓名 房屋坐落 或不动产正好查询
     * @param requestItem
     * @return
     */
    List<RightOrProof> selectRightsOrProofByNameLcCn(RequestItem requestItem);

    Integer selectCountByNameLcCn(RequestItem requestItem);

    List<RightOrProof> selectRightsOrProofByCertno(RequestItem requestItem);

    Integer selectCountByCertno(RequestItem requestItem);

}
